import Vue from 'vue'
import Router from 'vue-router'
import Type from './views/type/index.vue'

Vue.use(Router)

export default new Router({
    mode: 'hash', // gonggaodetail
    base: process.env.BASE_URL,
    routes: [
        //viewserve
        {
            path: '/',
            meta:{nobar:1},
            name: 'types',
            component: Type
        },
        {
            path: '/viewserve',
           
            name: 'viewserve',
            component: () => import('./views/viewserve/index.vue')
        },
        {
            path: '/servedetail',
           
            name: 'servedetail',
            component: () => import('./views/servedetail/index.vue')
        },
        {
            path: '/servelist',
           
            name: 'servelist',
            component: () => import('./views/servelist/index.vue')
        },
        {
            path: '/addvillage',
           
            name: 'addvillage',
            component: () => import('./views/addvillage/index.vue')
        },
        {
            path: '/permision',
            name: 'permision',
            component: () => import('./views/permision/index.vue')
        },
        {
            path: '/myvillage',
            name: 'myvillage',
            component: () => import('./views/myvillage/index.vue')
        },
        {
            path: '/first',
            meta:{nobar:1},
            name: 'type3',
            component: () => import('./views/first/index.vue')
        },
        {
            path: '/opendoor',
            meta:{nobar:1},
            name: 'opendoor',
            component: () => import('./views/opendoor/index.vue')
        },
        {
            path: '/guanzhu',
            meta:{nobar:1},
            name: 'guanzhu',
            component: () => import('./views/guanzhu/index.vue')
        },
        {
            path: '/type',
            meta:{nobar:1},
            name: 'type',
            component: () => import('./views/type/index.vue')
        },
        {
            path: '/village',
            meta:{nobar:1},
            name: 'village',
            component: () => import('./views/village/index.vue')
        },
        {
            path: '/historycheck',
            name: 'historycheck',
            component: () => import('./views/historycheck/index.vue')
        },
        {
            path: '/historytiandan',
            name: 'historytiandan',
            component: () => import('./views/historytiandan/index.vue')
        },
        {
            path: '/tiandan',
            name: 'tiandan',
            component: () => import('./views/tiandan/index.vue')
        },
        {
            path: '/check',
            name: 'check',
            component: () => import('./views/check/index.vue')
        },
        {
            path: '/applay',
            name: 'applay',
            component: () => import('./views/applay/index.vue')
        },
        {
            path: '/frienddetail',
            name: 'frienddetail',
            component: () => import('./views/frienddetail/index.vue')
        },
        {
            path: '/myinfo',
            name: 'myinfo',
            component: () => import('./views/myinfo/index.vue')
        },
        {
            path: '/addfriends',
            name: 'addfriends',
            component: () => import('./views/addfriends/index.vue')
        },
        {
            path: '/test',
            name: 'test',
            component: () => import('./views/test/index.vue')
        },
        {
            path: '/myfriends',
            name: 'myfriends',
            component: () => import('./views/myfriends/index.vue')
        },
        
        {
            path: '/home',
            component: () => import('./views/Home.vue')
        }

    ]
})
